<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>对象的构建</title>
</head>
<body>
<script>
    let name = "abc";
    let gender = "男";
    let age = 18;
    /*
    let person = {
      "name": "abc",
      "gender": "男",
      "age": 18
    };

    console.log(person);
    */

    /*
    let person = {
        "name": name,
        "gender": gender,
        "age": age
    };

    console.log(person);
    */

    let person = {
        name,
        gender,
        age
    };

    console.log(person);
</script>
</body>
</html>